package com.holly.unit.deform.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.holly.unit.deform.entity.DesignFormOnlineIndex;
import com.holly.unit.deform.mapper.DesignFormOnlineIndexMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DesignFormOnlineIndexService extends ServiceImpl<DesignFormOnlineIndexMapper, DesignFormOnlineIndex> {

    public List<DesignFormOnlineIndex> listHead(String id) {
        QueryWrapper<DesignFormOnlineIndex> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("cgform_head_id",id);
        queryWrapper.orderByAsc("create_time");
        return this.list(queryWrapper);
    }
}
